package com.digitalchina.lxnsy.activity.farmVideo;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.activity.farmTrain.TrainMyCaseActivity;
import com.digitalchina.lxnsy.activity.farmTrain.TrainSelectAgencyActivity;
import com.digitalchina.lxnsy.base.BaseHtmlActivity;

public class Test extends BaseHtmlActivity {
    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);
        loadUrl("test");
    }

    @Override
    public void rightOnClick() {

    }

    public class JsApi {

        //兴趣选择
        @JavascriptInterface
        public void hobbiesSelect(Object msg) {
            go(HobbiesSelectActivity.class);
        }

        //视频列表
        @JavascriptInterface
        public void videoList(Object msg) {
            go(VideoListActivity.class);
        }

        //我的粉丝
        @JavascriptInterface
        public void fansSelect(Object msg) {
            go(MyFansActivity.class);
        }

        //我的关注
        @JavascriptInterface
        public void concernSelect(Object msg) {
            go(MyConcernActivity.class);
        }

        //我的评论
        @JavascriptInterface
        public void myCommentSelect(Object msg) {
            go(MyCommentActivity.class);
        }
        //个人主页
        @JavascriptInterface
        public void personSelect(Object msg) {
            go(PersonActivity.class);
        }
        //我的点赞
        @JavascriptInterface
        public void personPraise(Object msg) {
            go(MyPraiseListActivity.class);
        }

        //我的点赞
        @JavascriptInterface
        public void pinglun(Object msg) {
            go(CommentActivity.class);
        }

        //我的购买
        @JavascriptInterface
        public void myPurchase(Object msg) {
            go(MyPurchaseListActivity.class);
        }


        //作品管理
        @JavascriptInterface
        public void workManage(Object msg) {
            go(MyWorkManageActivity.class);
        }


        //发布农技视频
        @JavascriptInterface
        public void addAgr(Object msg) {
            go(AgrVideoEditActivity.class);
        }


        //选择报价作品管理
        @JavascriptInterface
        public void goXuanZhong(Object msg) {
            go(TrainSelectAgencyActivity.class);
        }

        //成功案例
        @JavascriptInterface
        public void myCase(Object msg) {
            go(TrainMyCaseActivity.class);
        }

    }
}
